<!-- Author: Moe Kyaw Thu Aung --> 
<!-- Last Modified: 11 Sep 2012 -->
<html>
	<head>
		<title>My Book Store : Administration</title>
		<link rel="stylesheet" href="../css/admin.css" />

		<script src="../js/jquery.js"></script>
		<script src="../js/jquery.validate.js"></script>
		<script>
			$(document).ready(function() {
				$("form").validate({
					rules: {
						name: {
							required: true,
							minlength: 4
						},
						price: {
							required: true,
							number: true
						},
						qty: {
							required: true,
							number: true
						},
					}
				});
			});
		</script>
	</head>
	<body>
		<div id="wrapper">
			<div id="head">
				<h1>My Book Store : New Item</h1>
				<a href="actions.php?do=logout">Logout</a>
			</div>

			<div id="new-form">
				<form action="actions.php?do=add" method="post" enctype="multipart/form-data">
					<table>
						<tr>
							<td>Name</td>
							<td><input type="text" name="name" /></td>
						</tr>
						<tr>
							<td valign='top'>Description</td>
							<td><textarea name="des"></textarea> </td>
						</tr>
						<tr>
							<td>Price</td>
							<td><input type="text" name="price" /> </td>
						</tr>
						<tr>
							<td>Quantity</td>
							<td><input type="text" name="qty" /></td>
						</tr>
						<tr>
							<td>Cover</td>
							<td><input type="file" name="cover" /></td>
						</tr>
						<tr>
							<td></td>
							<td>
								<input type="submit" value="Add &raquo;" />
								&nbsp; <a href="list.php">Back</a>
							</td>
						</tr>
					</table>
					
					
				</form>
			</div>
			
			<br /><br /><br />
			
			<div id="foot">
				&copy; copyright 2010.
			</div>

		</div>
	</body>
</html>
